package com.guigu.erp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.erp.pojo.ManufactureDesignProcedure;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Lenovo
 */
public interface ManufactureDesignProcedureMapper extends BaseMapper<ManufactureDesignProcedure> {
    /**
     * 查询ID最大的生产工序设计单信息
     * @return
     */
    ManufactureDesignProcedure queryMaxProcedure();

    /**
     * 获取产品的ID
     * @param productId
     * @return
     */
    List<ManufactureDesignProcedure> queryProductId(@Param("productId") int productId);
}
